﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace ASPItalia.ModelVirtualCasting.Web
{
	public partial class Login : Page
	{
		protected override void OnLoad(EventArgs e)
		{
			base.OnLoad(e);

			ResetLocalPassword.Visible = Request.IsLocal;
		}

		protected void ResetAdminPassword(object sender, EventArgs e)
		{
			if (!Request.IsLocal)
				return;

			NewPassword.Text = "Username: rocco. La nuova password è : " + Membership.GetUser("rocco").ResetPassword();
		}
	}
}